package com.example.androidcomplete0102.ch13;

import com.example.androidcomplete0102.R;
import com.example.androidcomplete0102.R.id;
import com.example.androidcomplete0102.R.layout;
import com.example.androidcomplete0102.ch12.ListViewArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch13_Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch13_main);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		switch(v.getId()){
		case R.id.ch13_btn01:
			intent = new Intent(this, ProgressBarEx.class);
			break;
		case R.id.ch13_btn02:
			intent = new Intent(this, ProgressTitleEx.class);
			break;
		case R.id.ch13_btn03:
			intent = new Intent(this, ProgressTitleEx2.class);
			break;
		case R.id.ch13_btn04:
			intent = new Intent(this, SeekBarEx.class);
			break;
		case R.id.ch13_btn05:
			intent = new Intent(this, RatingBarEx.class);
			break;
		case R.id.ch13_btn06:
			intent = new Intent(this, DatePickerTest.class);
			break;
		case R.id.ch13_btn07:
			intent = new Intent(this, TimePickerTest.class);
			break;
		case R.id.ch13_btn08:
			intent = new Intent(this, PickerDialofTest.class);
			break;
		case R.id.ch13_btn09:
			intent = new Intent(this, WebViewTest.class);
			break;
		case R.id.ch13_btn10:
			intent = new Intent(this, SwitchTest.class);
			break;
		case R.id.ch13_btn11:
			intent = new Intent(this, NumberPickerTest.class);
			break;
		case R.id.ch13_btn12:
			intent = new Intent(this, CalendarViewEx.class);
			break;
		case R.id.ch13_btn13:
			intent = new Intent(this, ListPopupWindowEx.class);
			break;
		}
		startActivity(intent);
	}
		
}
